package com.ruoyi.business.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;

/**
 * 运单轨迹视图对象 freight_vehicle_trail
 *
 * @author ruoyi
 * @date 2024-04-24
 */
@Data
@ExcelIgnoreUnannotated
public class FreightVehicleTrailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 定位id
     */
    @ExcelProperty(value = "定位id")
    private Long id;

    /**
     * 运单id
     */
    @ExcelProperty(value = "运单id")
    private Long freightId;

    /**
     * 轨迹
     */
    @ExcelProperty(value = "轨迹")
    private String trail;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    private String lng;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    private String lat;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 逻辑删除
     */
    @ExcelProperty(value = "逻辑删除")
    private Integer isDeleted;

    /**
     * 是否补录（Y=是,N=否）
     */
    @ExcelProperty(value = "是否补录", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "Y==是,N=否")
    private String isBlue;

    /**
     * 用户id
     */
    @Translation(type = TransConstant.USER_ID_TO_NAME)
    @ExcelProperty(value = "用户id")
    private Long relevanceUserId;

    /**
     * 记录时间
     */
    @ExcelProperty(value = "记录时间")
    private Date recordTime;

    /**
     * 是否起点
     */
    @ExcelProperty(value = "是否起点")
    private String isStartPoint;

    /**
     * 是否终点
     */
    @ExcelProperty(value = "是否终点")
    private String isEndPoint;

    /**
     * 是否运营方添加
     */
    @ExcelProperty(value = "是否运营方添加")
    private String isOperationAdd;


}
